﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
            Udisk u1 = new Udisk("华为");
            u1.Read();
            u1.Write();

            Console.WriteLine();

          ydyingpan  sx = new ydyingpan("苹果200G");
            sx.Read();
            sx.Write();

            Console.WriteLine();

            Computer lenove = new Computer("联想");
            lenove.Start();
            lenove.Usb1 = u1;
            lenove.Usb2 = sx;

            lenove.ReadData();
            lenove.WriteData();

            lenove.End();
            //lenove.Usb1 = u1;


            //abstractClass.Hello();
        }
        //AbstractClass ac;
        public void Test(AbstractClass ac)
        {
            ac.Hello();
        }
    }
}
